const { STRING, DATE, INTEGER } = require("sequelize");
const config = require("./config.json");

module.exports = {
  model: {
    eggUser: {
      tbName: "egg_user",
      columns: {
        id: {
          type: INTEGER,
          primaryKey: true,
          autoIncrement: true
        },
        name: STRING(30),
        sonName: STRING(50),
        createdAt: DATE,
        updatedAt: DATE
      }
    }
  },
  dialect: {
    mysql: {
      development: config.development,
      test: config.test,
      production: config.production
    }
  }
};
